package com.settlement.system.mapper;

import com.settlement.system.model.entity.NoMatchRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.settlement.system.model.query.NoMatchRecordQuery;
import org.apache.ibatis.annotations.Param;

/**
* <p>
* 转换不到账单记录表 Mapper 接口
* </p>
*
* @author huangrensen
* @since 2024-08-09
*/
@Mapper
public interface NoMatchRecordMapper extends BaseMapper<NoMatchRecord> {

    /**
    * 插入数据
    *
    * @param noMatchRecord 实体
    * @return
    */
    int insertData(NoMatchRecord noMatchRecord);

    /**
    * 更新数据
    *
    * @param noMatchRecord 实体
    * @return
    */
    int update(NoMatchRecord noMatchRecord);

    /**
    * 查询数据
    *
    * @param noMatchRecord 实体
    * @return
    */
    List<NoMatchRecord> getList(NoMatchRecord noMatchRecord);

    /**
    * 分页查询
    *
    * @param queryParams 实体
    * @return
    */
    Page<NoMatchRecord> getPage(Page<NoMatchRecord> page, NoMatchRecordQuery queryParams);

    /**
     * 通过拼接sql查询数据，用Map封装
     * @param sql
     * @return
     */
    List<Map<String, Object>> getDataBySql(@Param("sql")String sql);
}
